package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Client {
    private Long id;

    private String name;

    private Employee saleman;

    private int traceNum;

    private boolean traced = false;

    private Long age;

    private String gender;


    private String tel;


    private String qq;

    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date formBuildDate;

    private String weChat;

    private String school;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private String address;

    private DictionaryItem eduBackground;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastTraceTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nextTraceTime;

    private String major;

    private DictionaryItem source;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date appointTime;

    private Client introducerStu;

    private String introducer;

    private DictionaryItem clientType;

    private DictionaryItem intentionDegree;

    private DictionaryItem state;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enrollUniversityDate;

    private Class clz;

    private University bigCustomer;

    private DictionaryItem campus;

    private DictionaryItem intentionSubject;

    private String hasPaid;

    private String focusProblem;

    private String remark;
    //判断是否放入资源池
    private boolean abandoned = true;

}